!function(e){"use strict";function n(e,n,i){"addEventListener"in window?e.addEventListener(n,i,!1):"attachEvent"in window&&e.attachEvent("on"+n,i)}function i(e,n,i){"removeEventListener"in window?e.removeEventListener(n,i,!1):"detachEvent"in window&&e.detachEvent("on"+n,i)}function t(){var e,n=["moz","webkit","o","ms"];for(e=0;eo&&(o=i,r(X,"Set "+t+" to min value")),o>n&&(o=n,r(X,"Set "+t+" to max value")),Q[t]=""+o}function s(){function n(){function e(){var e=0,n=!1;for(r(X,"Checking connection is from allowed list of origins: "+t);eq[k]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}function a(){var e=t&&t.id||U.id+T++;return null!==document.getElementById(e)&&(e+=T++),e}function c(e){return V=e,""===e&&(i.id=e=a(),O=(t||{}).log,V=e,r(e,"Added missing iframe ID: "+e+" ("+i.src+")")),e}function u(){switch(r(k,"IFrame scrolling "+(q[k]&&q[k].scrolling?"enabled":"disabled")+" for "+k),i.style.overflow=!1===(q[k]&&q[k].scrolling)?"hidden":"auto",q[k]&&q[k].scrolling){case!0:i.scrolling="yes";break;case!1:i.scrolling="no";break;default:i.scrolling=q[k]?q[k].scrolling:"no"}}function s(){("number"==typeof(q[k]&&q[k].bodyMargin)||"0"===(q[k]&&q[k].bodyMargin))&&(q[k].bodyMarginV1=q[k].bodyMargin,q[k].bodyMargin=""+q[k].bodyMargin+"px")}function f(){var e=q[k]&&q[k].firstRun,n=q[k]&&q[k].heightCalculationMethod in L;!e&&n&&w({iframe:i,height:0,width:0,type:"init"})}function l(){Function.prototype.bind&&q[k]&&(q[k].iframe.iFrameResizer={close:d.bind(null,q[k].iframe),resize:p.bind(null,"Window resize","resize",q[k].iframe),moveToAnchor:function(e){p("Move to anchor","moveToAnchor:"+e,q[k].iframe,k)},sendMessage:function(e){e=JSON.stringify(e),p("Send Message","message:"+e,q[k].iframe,k)}})}function m(t){function o(){p("iFrame.onload",t,i,e,!0),f()}n(i,"load",o),p("init",t,i,e,!0)}function g(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}function h(e){for(var n in U)U.hasOwnProperty(n)&&(q[k][n]=e.hasOwnProperty(n)?e[n]:U[n])}function b(e){return""===e||"file://"===e?"*":e}function v(e){e=e||{},q[k]={firstRun:!0,iframe:i,remoteHost:i.src.split("/").slice(0,3).join("/")},g(e),h(e),q[k]&&(q[k].targetOrigin=!0===q[k].checkOrigin?b(q[k].remoteHost):"*")}var k=c(i.id);v(t),u(),o(),s(),m(y(k)),l()}function k(e,n){null===B&&(B=setTimeout(function(){B=null,e()},n))}function M(){function e(){function e(e){function n(n){return"0px"===(q[e]&&q[e].iframe.style[n])}function i(e){return null!==e.offsetParent}q[e]&&i(q[e].iframe)&&(n("height")||n("width"))&&p("Visibility change","resize",q[e].iframe,e)}for(var n in q)e(n)}function n(n){r("window","Mutation observed: "+n[0].target+" "+n[0].type),k(e,16)}function i(){var e=document.querySelector("body"),i={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},o=new t(n);o.observe(e,i)}var t=window.MutationObserver||window.WebKitMutationObserver;t&&i()}function F(e){function n(){z("Window "+e,"resize")}r("window","Trigger event: "+e),k(n,16)}function x(){function e(){z("Tab Visable","resize")}"hidden"!==document.visibilityState&&(r("document","Trigger event: Visiblity change"),k(e,16))}function z(e,n){function i(e){return q[e]&&"parent"===q[e].resizeFrom&&q[e].autoResize&&!q[e].firstRun}for(var t in q)i(t)&&p(e,n,document.getElementById(t),t)}function I(){n(window,"message",s),n(window,"resize",function(){F("resize")}),n(document,"visibilitychange",x),n(document,"-webkit-visibilitychange",x),n(window,"focusin",function(){F("focus")}),n(window,"focus",function(){F("focus")})}function R(e){try{return e instanceof HTMLElement}catch(n){return"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument}}function C(){function n(e,n){function i(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected